<template>
  <div class="onea">
    <div class="oneb">
      <div class="onec">
        <img src="../assets/110.png" alt="" class="onecc" />
      </div>
      <div class="oned">
        <span class="onee">Bug</span>
        <span class="onee">一个bug</span>
        <span class="onee">最近获得时间: &nbsp;&nbsp;{{ getCurrentTime() }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "daoju",
  data() {
    return {
      msg: new Date(),
      // mf: "",
    };
  },
  methods: {
    getCurrentTime() {
      //获取当前时间并打印
      var _this = this;
      let yy = new Date().getFullYear();
      let mm = new Date().getMonth() + 1;
      let dd = new Date().getDate();
      // let hh = new Date().getHours();
      // let mf =
      //   new Date().getMinutes() < 10
      //     ? "0" + new Date().getMinutes()
      //     : new Date().getMinutes();
      // let ss =
      //   new Date().getSeconds() < 10
      //     ? "0" + new Date().getSeconds()
      //     : new Date().getSeconds();
      // " " + hh + ":" + mf + ":" + ss
      _this.gettime = yy + "/" + mm + "/" + dd;
      console.log(_this.gettime);

      return _this.gettime;
    },
  },
};
</script>

<style lang="less" scoped>
.onea {
  width: 900px;
  height: 600px;
 /*  border: 1px solid black; */
}
.oneb {
  margin-top: 20px;
  margin-left: 20px;
  width: 400px;
  height: 100px;
  /* border: 1px solid blue; */
  display: flex;
}
.onec {
  width: 75px;
  height: 60px;
  margin-top: 20px;
  margin-left: 20px;
}
.onecc {
  width: 100%;
  height: 100%;
}
.oned {
  width: 280px;
  height: 80px;
}
.onee {
  margin-top: 10px;
  margin-left: 10px;
  display: block;
}
</style>